FROM java:8
EXPOSE 8080
EXPOSE 5005
VOLUME /tmp
ADD target/*.jar  /app.jar
RUN bash -c 'touch /app.jar'
ENTRYPOINT ["java","-jar","-Xms128m","-Xmx300m","-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005","/app.jar","--spring.profiles.active=prod"]
